<template>
  <el-dialog ref="ELDialog1" :visible.sync="visible">
    <r-form ref="form" :columns="columns" :submit="submitBtn" @submit="submitHandler"> </r-form>
  </el-dialog>
</template>
<script>
export default {
  data() {
    return {
      submitBtn: {
        name: '校长',
        type: 'danger'
      }
    }
  },
  props: {
    columns: {
      type: Array
    },
    visible: {
      type: Boolean
    }
  },
  methods: {
    submitHandler(formData) {
      this.$emit('submit', formData)
    }
  }
}
</script>
<style scoped>
</style>
